package com.example.DAO;

import com.example.entity.Goodstype;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
@Mapper
public interface GoodstypeMapper {
    @Select("select * from goodstype where tid = #{tid}")
    Goodstype findbyid(Integer tid);
    @Select("select * from goodstype")
    ArrayList<Goodstype> findAll();

}
